home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11889 < prev    next >
Encoding:
Text File  |  1996-08-05  |  837 b   |  30 lines

  1. Path: ix.netcom.com!netnews
  2. From: martypro@ix.netcom.com (Marty)
  3. Newsgroups: comp.lang.c
  4. Subject: Question-how print time from unix
  5. Date: 27 Mar 1996 04:56:15 GMT
  6. Organization: Netcom
  7. Message-ID: <4jahpf$dpp@cloner2.ix.netcom.com>
  8. NNTP-Posting-Host: tam-fl4-13.ix.netcom.com
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. X-NETCOM-Date: Tue Mar 26  8:56:15 PM PST 1996
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. Ok here is a dumb question I'm sure:
  15.  
  16. Below is the relevant code I am using to input the time into a structure 
  17. element and can't find the appropriate conversion character to use with 
  18. printf to print it, that is if that is how you print it.  Any help you 
  19. can give me will be greatly appreciated.
  20.  
  21. struct queue
  22.   {char name[MAX1];
  23.    time_t time_in;
  24.    int priority;
  25.   }customer[MAX2];
  26.  
  27. customer[inctr].time_in=time(NULL);
  28.  
  29.  
  30.